package service

class Room {

	String name
	String building
	int capacity
	
	static hasmany= [reservation: Reservation]
	
	static constraints = {
		name(unique:true, blank: false, size: 1..20)
		building(blank: false, size: 1..20)
		capacity(max: 500)
	}
	/**
	 * Show Room.
	 */
	public String toString() {
		return "Salle: "+name+" - Batiment: "+building+" - Capacite Totale: "+capacity+";"
	}
}
